{{ define "common/header.html" }}
<h2>
    <div class="col-xs-12 col-sm-3 col-md-2 text-center mt10">
        <a style="color:#FA0807;" class="abtn" href="/index.html">淘书网</a>
    </div>
    <div class="col-xs-7 col-sm-6 col-md-7 mt10">
            <!-- onsubmit="return $('#search-name').val().trim().length > 0" -->
        <form class="form col-md-12" role="search" action="/search.html" method="POST">
            <div class="input-group">
                <input type="text" class="form-control" name="name" id="search-name" value="{{if .searchName}}{{.searchName}}{{end}}">
                <span class="input-group-btn">
                    <button class="btn btn-danger" type="submit">查询</button>
                </span>
            </div>
        </form>
    </div>
    <div class="col-xs-5 col-sm-3 col-md-3 mt10">
        <button class="btn btn-warning" type="button" style="color: #A44D46;">我的购物车</button>
    </div>
</h2>
{{end}}